package 作业1024.作业03;

public class Cat extends Pet {
    private int tizhong;

    public Cat() {
    }

    public Cat(String name, int tili, int tizhong) {
        super(name, tili);
        this.tizhong = tizhong;
    }

    public int getTizhong() {
        return tizhong;
    }

    public void setTizhong(int tizhong) {
        this.tizhong = tizhong;
    }
    public void zhuolaoshu(){
        super.setTili(10);
        System.out.println("老鼠被咬死，猫体力上升");
    }
}
